(Fx_popup_menu): Allow a frame instead of a window, in arg.
authorRichard M. Stallman <rms@gnu.org>
Fri, 12 Mar 1993 10:15:36 +0000 (10:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 12 Mar 1993 10:15:36 +0000 (10:15 +0000)
Use Fcar, Fcdr when extracting from event, to check data types.

src/xmenu.c

index aa8ec70a520edca8b811c62712504f36b8254044..4d86a6296b2ea4641db06166f38514bfc3cf046d 100644 (file)
@@ -132,9 +132,9 @@ be the return value for that line (i.e. if it is selected).")
     }
   else
     {
-      tem = EVENT_START (position);
-      window = POSN_WINDOW (tem);
-      tem = POSN_WINDOW_POSN (tem);
+      tem = Fcar (Fcdr (position));  /* EVENT_START (position) */
+      window = Fcar (tem);          /* POSN_WINDOW (tem) */
+      tem = Fcar (Fcdr (Fcdr (tem))); /* POSN_WINDOW_POSN (tem) */
       x = Fcar (tem);
       y = Fcdr (tem);
     }